(function () {

  define(['less'], function () {
    return {
      load: function (name, parentRequire, load, config) {

        var link = document.createElement('link');
        link.rel = 'stylesheet/less';
        link.href = parentRequire.toUrl(name);
        link.type = 'text/css';

        parentRequire(['less'], function(less) {
          less.sheets.push(link);
          less.refresh();
        });

        load();

      }
    };
  });
}());